package com.hyz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyz.pojo.Rights;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HGD
 * @date 2022/9/15 12:29
 */
@Mapper
public interface RightsMapper extends BaseMapper<Rights> {
    /**
     * 根据用户id查询权限列表
     *
     * @param userId 用户id
     * @return 权限列表
     */
    List<String> selectPermsByUserId(@Param("userId") String userId);
}
